/**
 *******************************************************************************
 * @FileName  : user_main.h
 * @Author    : GaoQiu
 * @CreateDate: 2020-05-18
 * @Copyright : Copyright(C) GaoQiu
 *              All Rights Reserved.
 *******************************************************************************
 *
 * The information contained herein is confidential and proprietary property of
 * GaoQiu and is available under the terms of Commercial License Agreement
 * between GaoQiu and the licensee in separate contract or the terms described
 * here-in.
 *
 * This heading MUST NOT be removed from this file.
 *
 * Licensees are granted free, non-transferable use of the information in this
 * file under Mutual Non-Disclosure Agreement. NO WARRENTY of ANY KIND is provided.
 *
 *******************************************************************************
 */

#ifndef USER_MAIN_H_
#define USER_MAIN_H_

#include "utils/defs_types.h"
#include "utils/track.h"
#include "platform/platform.h"

/*! APP event define. */
#define APP_EVT_LED_BLINK          0x0001
#define APP_EVT_UPD_ADV_DATA       0x0002
#define APP_EVT_DISCONN        	   0x0003
#define APP_EVT_PHY_UPD            0x0008
#define APP_EVT_DLE_UPD            0x0010
#define APP_EVT_CONN_UPD           0x0020
#define APP_EVT_KEY_SCAN           0x0040
#define APP_EVT_NOTIFY             0x0080

/*! APP Custom Key code define */
#define VOL_UP                    0x0001 //map 0x00e9
#define VOL_DN                    0x0002 //map 0x00ea
#define MUTE                      0x0004
#define PLAY                      0x0008
#define PAUSE                     0x0010
#define STOP                      0x0020
#define NEXT                      0x0040
#define Previous                  0x0080

void App_KeyTaskStart(void);
void App_KeyScanTimerStart(void);

void Setup(void);
void Loop(void);

#endif /* USER_MAIN_H_ */
